package com.zhongzhi.service;

import org.springframework.web.bind.annotation.RequestMapping;

import com.zhongzhi.springboot.pojo.Aisle;
import com.zhongzhi.springboot.pojo.Bo;
import com.zhongzhi.springboot.pojo.Equipment;

public interface EquipmentService{
	//1:增加设备
	@RequestMapping("insert")
	public Bo insert(Equipment equipment);
	//2:修改设备
	@RequestMapping("update")
	public Bo update(Equipment equipment);
	//3:删除设备(如果设备有者通道,则不能删除)
	@RequestMapping("delete")
	public Bo delete(Integer id); 
	//4:查询设备(包括设备下属的通道)
	@RequestMapping("select")
	public Bo select(Integer pages,Integer line); 
	//5:查询设备总数
	public Bo selectSize(); 
	//6:查询设备(根据id查询)
	@RequestMapping("select")
	public Bo selectById(Integer id);
	
}
